package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.PersonnelGroup;
import com.iengoo.inductionms.service.PersonnelGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author:huermao
 * 人员组
 **/
@RestController
@RequestMapping("/personnel_group")
public class PersonnelGroupController {
    @Autowired
    private PersonnelGroupService personnelGroupService;
    @GetMapping
    public List<PersonnelGroup> getPersonnelGroup() {
        List<PersonnelGroup> personnelGroupList = personnelGroupService.queryAll();
        return personnelGroupList;
    }
}
